<#import "/ftl/mainAdmin.ftl" as page>

<@page.mainTemplate styleSheet="commanageCss" jsFile="goodsManageJs" current="商品管理">
	<div class="page-content">
		<div class="page-head">
			<div class="page-title">
				<h1>商品管理
					<small>商品详情</small>
				</h1>
			</div>
		</div>
		<div class="row">
			<div class="portlet light borderd">
				<div class="portlet-body form edit-form">
					<form action="#" id="createForm" class="createForm creatform">
					    <input type="hidden" value="${goods.id}" name="id">
						<input type="hidden" value="${goods.state}" name="state">
						<input type="hidden" value="${goods.channel_id}" name="channel_id1">
						<div class="row">
                            <div class="col-md-6">
                                <div class="form-group">
                                    <div class="input-group">
                                        <label class="input-group-addon">发布类型</label>
                                        <div class="input-group-content">
                                            <input type="text" id="data_type" name="data_type" class="form-control" placeholder="发布类型" value="${goods.data_type_str}" readonly="readonly"/>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <div class="col-md-6">
                                <div class="form-group">
                                    <div class="input-group">
                                        <label class="input-group-addon">产品编号</label>
                                        <div class="input-group-content">
                                            <input type="text" id="sku_id" name="sku_id" class="form-control" placeholder="产品编号" value="${goods.sku_id}" readonly="readonly"/>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="row">
                            <div class="col-md-6">
                                <div class="form-group">
                                    <div class="input-group">
                                        <label class="input-group-addon">服务名称</label>
                                        <div class="input-group-content">
                                            <input type="text" id="name" name="name" class="form-control" placeholder=""   readonly="readonly" value="${goods.name}">
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <div class="col-md-6">
                                <div class="form-group">
                                    <div class="input-group">
                                        <label class="input-group-addon">产品价格</label>
                                        <div class="input-group-content">
                                            <input type="text" id="price" name="price" class="form-control" placeholder=""  readonly="readonly" value="${goods.price}">
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="row">
                            <div class="col-md-6">
                                <div class="form-group">
                                    <div class="input-group">
                                        <label class="input-group-addon">产品数量</label>
                                        <div class="input-group-content">
                                            <input type="text" id="number" name="number" class="form-control" placeholder=""  readonly="readonly" value="${goods.number}">
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <div class="col-md-6">
                                <div class="form-group">
                                    <div class="input-group">
                                        <label class="input-group-addon">产品状态</label>
                                        <div class="input-group-content">
                                            <input type="text" id="state_str" name="state_str" class="form-control" placeholder="" readonly="readonly" value="${goods.state_str}">
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="row">
                            <div class="col-md-6">
                                <div class="form-group">
                                    <div class="input-group">
                                        <label class="input-group-addon">发布对象</label>
                                        <div class="input-group-content">
                                            <select class="form-control input-inline" name="publishCompany"  disabled>
                                                <option value="">请选择公司</option>
                                            </select>
                                        </div>
                                    </div>
                                    <ul class="list-group" id="companyList">
                                        <#list goods.companyList as list>
                                        <li class="list-group-item" data-id="${list.id}"> ${list.company_name}
                                        </li>
                                    </#list>
                                    </ul>
                                </div>
                            </div>
                            <div class="col-md-6">
                                <div class="form-group">
                                    <div class="input-group">
                                        <label class="input-group-addon">收款商户</label>
                                        <div class="input-group-content">
                                            <input type="text" id="channel_id_2" name="channel_id_2" class="form-control" placeholder="" readonly="readonly" value="${goods.channel_name}">
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="row">
                            <div class="col-md-6">
                                <div class="form-group">
                                    <div class="input-group">
                                        <label class="input-group-addon">图片名称</label>
                                        <div class="input-group-content">
                                            <input type="text" id="local_image" name="local_image" class="form-control" placeholder="图片名称"  value="${goods.local_image}" >
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="row">
                            <div class="col-md-6">
                                                            <div class="form-group">
                                                                <div class="input-group">
                                                                    <label class="input-group-addon">详细介绍</label>
                                                                    <div class="input-group-content">
                                                                        <textarea id="introduction" name="introduction" placeholder="详细介绍" class="form-control" style="width:100%;height:200px;" >${goods.introduction}</textarea>
                                                                    </div>
                                                                </div>
                                                            </div>
                                                        </div>
                            <div class="col-md-6">
                                <div class="form-group">
                                    <div class="input-group">
                                        <label class="input-group-addon">商品说明</label>
                                        <div class="input-group-content">
                                            <textarea id="param" name="param" placeholder="商品说明" style="height:200px;" class="form-control">${goods.param}</textarea>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <div class="col-md-6"></div>
                        </div>
                		<div class="form-actions top">
                			<div class="row">
                				<a href="${context}/goods/goodManageList" class="btn default">返回</a>
                			</div>
                		</div>
					</form>
				</div>
			</div>
		</div>
	</div>

</@page.mainTemplate>